home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-10-23 | 993 b | 24 lines | [TEXT/NTP1] |
- // Who we are:
- constant kAppSymbol := '|TapBoard:Chesley|;
- constant kPackageName := "TapBoard:Chesley";
-
- // Each square on the board can be empty, contain a newton piece, or contain
- // a user piece; for the convenience of the computer move algorithms, the
- // board array is made one square larger in each directions and the edges are
- // filled in with a special value (0). Also note that if p is one player, -p is
- // the other player. These constants are also used to indicate whose turn it is.
- constant kEmptySquare := nil;
- constant kNewtonPiece := -1;
- constant kUserPiece := 1;
- constant kBoardEdge := 0;
- constant kTieWinner := 0;
-
- RemoveScript := func(packageFrame)
- begin
- local cursor := Query(GetStores()[0]:GetSoup(ROM_SystemSoupName),
- {type: 'index, indexPath: 'tag, startKey: kPackageName,
- validTest: func(item) StrEqual(item.tag, kPackageName)});
- if cursor:Entry() <> nil then
- EntryRemoveFromSoup(cursor:Entry());
- end;
-